package com.neusoft.grid;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URL;

public class GridLogin extends Application {
    public static void main(String[] args) throws FileNotFoundException, IOException {
        File file = new File("src/com/neusoft/grid/data/grid.txt");
        launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        stage.setTitle("环境公众监督平台网格员登录页面");
        FXMLLoader fxmlLoader = new FXMLLoader();
        URL url = getClass().getResource("/com/neusoft/grid/view/GridLoginView.fxml");
        fxmlLoader.setLocation(url);
        Parent root = fxmlLoader.load();
        Scene scene = new Scene(root);
        stage.setScene(scene);
        stage.show();
    }
}
